package com.inyaa.web.blog.controller;

import com.inyaa.base.bean.BaseResult;
import com.inyaa.web.feign.InyaaPictureFeignService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/file")
@RequiredArgsConstructor
public class InyaaSysFileController {

    private final InyaaPictureFeignService inyaaPictureFeignService;

    @GetMapping("/image/pc")
    public BaseResult<String> getPc() {
        String url = inyaaPictureFeignService.getPc(0);
        return BaseResult.success(url);
    }
}
